/* Ark of Moments accessibility widget — v47.9.118.7 */
html.aom-a11y-text-medium body {
    line-height: 1.56 !important;
}

html.aom-a11y-text-large body {
    line-height: 1.62 !important;
}

html.aom-a11y-text-medium body :where(p, li, label, input, select, textarea, button, a, code, th, td, summary, span, small, strong, em):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: max(1.08em, 16px) !important;
    line-height: 1.52 !important;
}

html.aom-a11y-text-large body :where(p, li, label, input, select, textarea, button, a, code, th, td, summary, span, small, strong, em):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: max(1.18em, 18px) !important;
    line-height: 1.58 !important;
}

html.aom-a11y-text-medium body :where(h1, h2, h3, h4, h5, h6):not(.aom-a11y-widget, .aom-a11y-widget *),
html.aom-a11y-text-large body :where(h1, h2, h3, h4, h5, h6):not(.aom-a11y-widget, .aom-a11y-widget *) {
    line-height: 1.18 !important;
}

html.aom-a11y-text-medium body :where(h1):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: clamp(2rem, 5vw, 4.8rem) !important;
}

html.aom-a11y-text-large body :where(h1):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: clamp(2.25rem, 5.8vw, 5.25rem) !important;
}

html.aom-a11y-text-medium body :where(h2):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: clamp(1.55rem, 3.2vw, 2.7rem) !important;
}

html.aom-a11y-text-large body :where(h2):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: clamp(1.75rem, 3.8vw, 3rem) !important;
}

html.aom-a11y-text-medium body :where(h3):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: clamp(1.15rem, 2.2vw, 1.6rem) !important;
}

html.aom-a11y-text-large body :where(h3):not(.aom-a11y-widget, .aom-a11y-widget *) {
    font-size: clamp(1.3rem, 2.6vw, 1.8rem) !important;
}

html.aom-a11y-text-medium body :where(input, select, textarea, button):not(.aom-a11y-widget, .aom-a11y-widget *) {
    min-height: 44px;
}

html.aom-a11y-text-large body :where(input, select, textarea, button):not(.aom-a11y-widget, .aom-a11y-widget *) {
    min-height: 48px;
}

html.aom-a11y-reduce-motion,
html.aom-a11y-reduce-motion * {
    scroll-behavior: auto !important;
}

html.aom-a11y-reduce-motion *,
html.aom-a11y-reduce-motion *::before,
html.aom-a11y-reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

html.aom-a11y-focus-highlight :where(a, button, input, select, textarea, summary, [tabindex]):not(.aom-a11y-widget, .aom-a11y-widget *):focus-visible {
    outline: 4px solid var(--aom-accent, #d8ff45) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 7px rgba(var(--aom-accent-rgb, 216, 255, 69), 0.22) !important;
}

html.aom-a11y-high-contrast {
    --aom-accent: #ffea00;
    --aom-accent-rgb: 255, 234, 0;
    --aom-lime: var(--aom-accent);
    --lime: var(--aom-accent);
    color-scheme: dark;
}

html.aom-a11y-high-contrast body {
    background: #000 !important;
    color: #fff !important;
    text-shadow: none !important;
}

html.aom-a11y-high-contrast :where(.momentark-shell, .intro, .home-info-tabs, .home-info-tabs__panel, .package-card, .service-packages__info-card, .server-rooms, .server-rooms__panel, .server-room-create-modal__dialog, .server-rooms__create, .registration-request, .drive-import-home, .aom-dashboard-shell, .auth-shell, .landing-v2-shell, .gallery-storage, .gallery-collection, .memory-capsule-collection, .aom-dashboard-panel, .aom-dashboard-room-section, .aom-dashboard-room-card, .aom-admin-console__card, .aom-admin-user-row, .aom-admin-invite-card, .auth-card, .capsule-card, .room-card):not(.aom-a11y-widget, .aom-a11y-widget *) {
    background: #000 !important;
    color: #fff !important;
    border-color: #ffea00 !important;
    box-shadow: none !important;
}

html.aom-a11y-high-contrast :where(p, span, small, strong, em, h1, h2, h3, h4, h5, h6, label, li, code):not(.aom-a11y-widget, .aom-a11y-widget *) {
    color: #fff !important;
}

html.aom-a11y-high-contrast :where(a):not(.aom-a11y-widget, .aom-a11y-widget *) {
    color: #ffea00 !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18em !important;
}

html.aom-a11y-high-contrast :where(button, input, select, textarea, .aom-dashboard-button, .auth-button, .auth-register-form__nav):not(.aom-a11y-widget, .aom-a11y-widget *) {
    background: #000 !important;
    color: #fff !important;
    border-color: #ffea00 !important;
    box-shadow: none !important;
}

html.aom-a11y-high-contrast :where(button:hover, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible):not(.aom-a11y-widget, .aom-a11y-widget *) {
    outline: 3px solid #ffea00 !important;
    outline-offset: 3px !important;
}

html.aom-a11y-high-contrast :where(img, video, canvas):not(.aom-a11y-widget, .aom-a11y-widget *) {
    outline: 1px solid rgba(255, 234, 0, 0.35);
}

html.aom-theme-light.aom-a11y-high-contrast {
    --aom-accent: #003bff;
    --aom-accent-rgb: 0, 59, 255;
    --aom-lime: var(--aom-accent);
    --lime: var(--aom-accent);
    color-scheme: light;
}

html.aom-theme-light.aom-a11y-high-contrast body {
    background: #fff !important;
    color: #000 !important;
    text-shadow: none !important;
}

html.aom-theme-light.aom-a11y-high-contrast :where(.momentark-shell, .intro, .home-info-tabs, .home-info-tabs__panel, .package-card, .service-packages__info-card, .server-rooms, .server-rooms__panel, .server-room-create-modal__dialog, .server-rooms__create, .registration-request, .drive-import-home, .aom-dashboard-shell, .auth-shell, .landing-v2-shell, .gallery-storage, .gallery-collection, .memory-capsule-collection, .aom-dashboard-panel, .aom-dashboard-room-section, .aom-dashboard-room-card, .aom-admin-console__card, .aom-admin-user-row, .aom-admin-invite-card, .auth-card, .capsule-card, .room-card):not(.aom-a11y-widget, .aom-a11y-widget *) {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

html.aom-theme-light.aom-a11y-high-contrast :where(p, span, small, strong, em, h1, h2, h3, h4, h5, h6, label, li, code):not(.aom-a11y-widget, .aom-a11y-widget *) {
    color: #000 !important;
}

html.aom-theme-light.aom-a11y-high-contrast :where(a):not(.aom-a11y-widget, .aom-a11y-widget *) {
    color: #003bff !important;
}

html.aom-theme-light.aom-a11y-high-contrast :where(button, input, select, textarea, .aom-dashboard-button, .auth-button, .auth-register-form__nav):not(.aom-a11y-widget, .aom-a11y-widget *) {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

html.aom-theme-light.aom-a11y-high-contrast :where(.primary, .server-rooms__create-trigger, .package-card__contact):not(.aom-a11y-widget, .aom-a11y-widget *) {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

html.aom-theme-light.aom-a11y-high-contrast :where(button:hover, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible):not(.aom-a11y-widget, .aom-a11y-widget *) {
    outline: 3px solid #003bff !important;
    outline-offset: 3px !important;
}

.aom-a11y-widget,
.aom-a11y-widget * {
    box-sizing: border-box;
}

.aom-a11y-widget {
    position: fixed;
    z-index: 2147480000;
    inset-block-start: auto;
    inset-block-end: max(78px, calc(env(safe-area-inset-bottom) + 78px));
    inset-inline-end: max(18px, calc(env(safe-area-inset-right) + 18px));
    transform: none;
    width: 65px;
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 14px !important;
    line-height: 1.35;
    color: #f6f8f1;
    direction: ltr;
}

.aom-a11y-widget,
.aom-a11y-widget * {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.aom-a11y-widget[hidden],
.aom-a11y-widget.is-runtime-hidden,
body.aom-direct-room-load .aom-a11y-widget,
body.gallery-entered .aom-a11y-widget,
body.album2d-open .aom-a11y-widget,
body.album2d-autotour-active .aom-a11y-widget,
body.album2d-autotour-loop-active .aom-a11y-widget,
body.xr-active .aom-a11y-widget,
body.youtube-player-open .aom-a11y-widget,
body.album-media-overlay-open .aom-a11y-widget {
    display: none !important;
}

.aom-a11y-toggle {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--aom-accent, #d8ff45);
    box-shadow: none;
    cursor: pointer;
}

.aom-a11y-toggle img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.aom-a11y-toggle:hover,
.aom-a11y-toggle:focus-visible {
    background: transparent;
    outline: 2px solid rgba(var(--aom-accent-rgb, 216, 255, 69), 0.48);
    outline-offset: 4px;
}

.aom-a11y-panel {
    position: absolute;
    top: auto;
    bottom: calc(100% + 10px);
    inset-inline-end: 0;
    width: 308px;
    max-width: calc(100vw - 32px);
    min-height: 312px;
    padding: 14px;
    border: 1px solid rgba(var(--aom-accent-rgb, 216, 255, 69), 0.45);
    border-radius: 18px;
    background: rgba(5, 8, 9, 0.96);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
}

.aom-a11y-panel[hidden] {
    display: none !important;
}

.aom-a11y-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin-bottom: 10px;
}

.aom-a11y-panel__head strong {
    display: block;
    color: #fff;
    font-size: 15px !important;
    font-weight: bold;
}

.aom-a11y-panel__head small {
    display: block;
    min-height: 16px;
    margin-top: 2px;
    color: rgba(246, 248, 241, 0.68);
    font-size: 11px !important;
}

.aom-a11y-close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.aom-a11y-options {
    display: grid;
    gap: 8px;
}

.aom-a11y-text-size,
.aom-a11y-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fff7;
    text-align: start;
}

.aom-a11y-option {
    cursor: pointer;
}

.aom-a11y-text-size > span,
.aom-a11y-option span:first-child {
    min-width: 0;
    font-weight: bold;
}

.aom-a11y-text-size__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.aom-a11y-size-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-weight: bold;
}

.aom-a11y-size-button--normal {
    font-size: 14px !important;
}

.aom-a11y-size-button--medium {
    font-size: 19px !important;
}

.aom-a11y-size-button--large {
    font-size: 25px !important;
}

.aom-a11y-size-button[aria-pressed="true"] {
    border-color: rgba(var(--aom-accent-rgb, 216, 255, 69), 0.76);
    background: rgba(var(--aom-accent-rgb, 216, 255, 69), 0.14);
    color: var(--aom-accent, #d8ff45);
}

.aom-a11y-option:hover,
.aom-a11y-option:focus-visible,
.aom-a11y-size-button:hover,
.aom-a11y-size-button:focus-visible {
    border-color: rgba(var(--aom-accent-rgb, 216, 255, 69), 0.62);
    outline: none;
}

.aom-a11y-option[aria-pressed="true"] {
    border-color: rgba(var(--aom-accent-rgb, 216, 255, 69), 0.86);
    background: rgba(var(--aom-accent-rgb, 216, 255, 69), 0.14);
}

.aom-a11y-switch {
    width: 38px;
    height: 22px;
    flex: 0 0 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.aom-a11y-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    transition: transform 160ms ease;
}

.aom-a11y-option[aria-pressed="true"] .aom-a11y-switch::after {
    transform: translateX(16px);
    background: var(--aom-accent, #d8ff45);
}

.aom-a11y-reset {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    border: 1px solid rgba(var(--aom-accent-rgb, 216, 255, 69), 0.42);
    border-radius: 999px;
    background: transparent;
    color: var(--aom-accent, #d8ff45);
    cursor: pointer;
    font-weight: bold;
    font-size: 13px !important;
}

.aom-a11y-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .aom-a11y-widget {
        inset-block-end: max(78px, calc(env(safe-area-inset-bottom) + 78px));
        inset-inline-end: max(14px, calc(env(safe-area-inset-right) + 14px));
        width: 65px;
    }

    .aom-a11y-toggle {
        width: 65px;
        height: 65px;
    }

    .aom-a11y-panel {
        width: min(304px, calc(100vw - 28px));
        bottom: calc(100% + 10px);
    }
}


/* v47.9.118.7: launch CTA and light-theme contrast guardrails.
   Accessibility must not leak the temporary blue contrast accent back into the normal page state. */
html:not(.aom-a11y-high-contrast) body .intro__actions--capsule-cta #enterButton {
    background: #ffd400 !important;
    border-color: #ffd400 !important;
    color: #071014 !important;
}

html:not(.aom-a11y-high-contrast) body .intro__actions--capsule-cta #enterButton span,
html:not(.aom-a11y-high-contrast) body .intro__actions--capsule-cta #enterButton b {
    color: #071014 !important;
}

html.aom-a11y-high-contrast body .intro__actions--capsule-cta #enterButton,
html.aom-a11y-high-contrast body .intro__actions--capsule-cta .primary {
    background: #ffea00 !important;
    border-color: #ffea00 !important;
    color: #000 !important;
}

html.aom-a11y-high-contrast body .intro__actions--capsule-cta #enterButton span,
html.aom-a11y-high-contrast body .intro__actions--capsule-cta #enterButton b {
    color: #000 !important;
}

html.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary,
html.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary--examples,
html.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary--beta,
html.aom-a11y-high-contrast body #examplesScrollButton,
html.aom-a11y-high-contrast body #orderRoomButton,
html.aom-a11y-high-contrast body #createRoomButton {
    background: #000 !important;
    border-color: #ffea00 !important;
    color: #fff !important;
    box-shadow: none !important;
}

html.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary span,
html.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary b {
    color: #fff !important;
}

html.aom-theme-light.aom-a11y-high-contrast {
    --aom-accent: #ffcc00;
    --aom-accent-rgb: 255, 204, 0;
    --aom-lime: var(--aom-accent);
    --lime: var(--aom-accent);
    color-scheme: light;
}

html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta #enterButton,
html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta .primary,
html.aom-theme-light.aom-a11y-high-contrast body .server-rooms__create-trigger,
html.aom-theme-light.aom-a11y-high-contrast body .package-card__contact {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta #enterButton span,
html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta #enterButton b,
html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta .primary span,
html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta .primary b {
    color: #fff !important;
}

html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary,
html.aom-theme-light.aom-a11y-high-contrast body #examplesScrollButton,
html.aom-theme-light.aom-a11y-high-contrast body #orderRoomButton,
html.aom-theme-light.aom-a11y-high-contrast body #createRoomButton,
html.aom-theme-light.aom-a11y-high-contrast body .momentark-auth-button,
html.aom-theme-light.aom-a11y-high-contrast body .momentark-theme-toggle,
html.aom-theme-light.aom-a11y-high-contrast body .language-switch__button,
html.aom-theme-light.aom-a11y-high-contrast body .server-rooms__refresh,
html.aom-theme-light.aom-a11y-high-contrast body .aom-report-issue-button,
html.aom-theme-light.aom-a11y-high-contrast body [data-aom-report-issue] {
    background: #fff !important;
    border-color: #000 !important;
    color: #000 !important;
    box-shadow: none !important;
}

html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary span,
html.aom-theme-light.aom-a11y-high-contrast body .intro__actions--capsule-cta .secondary b {
    color: #000 !important;
}

html.aom-theme-light.aom-a11y-high-contrast body :where(button:hover, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible):not(.aom-a11y-widget, .aom-a11y-widget *) {
    outline: 3px solid #ffcc00 !important;
    outline-offset: 3px !important;
}
