marma-onboarding:not(:defined) {
    opacity: 0;
}
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background-color: white;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
    width: 100%;
    height: 100%;
}

model-viewer {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #f2f2f2;
  transition: opacity 200ms ease;
}

model-viewer.model-viewer--hidden {
  opacity: 0;
}

#ar-button {
    position: absolute;
    bottom: 40px;
    bottom: calc(40px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    min-width: 200px;
    
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    
    cursor: pointer;
    z-index: 100;
}

.ar-fallback {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 43%, rgba(146, 58, 255, 0.9) 0, rgba(109, 37, 237, 0.58) 25%, transparent 54%),
        radial-gradient(circle at 88% 58%, rgba(53, 28, 225, 0.72) 0, transparent 52%),
        linear-gradient(180deg, #1b0b2c 0%, #4e19bd 48%, #241052 100%);
}

.ar-fallback__card {
    --fallback-secondary-font-size: clamp(12px, 3.6vw, 18px);
    display: flex;
    flex-direction: column;
    width: 620px;
    max-width: 100%;
    min-height: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-size: var(--fallback-secondary-font-size);
    text-align: center;
}

.ar-fallback__content {
    margin: auto 0;
    padding: 64px 0 36px;
}

.ar-fallback__brand {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 10px;
    margin: 0 auto 28px;
    color: #ffffff;
}

.ar-fallback__brand-mark {
    width: 47px;
    height: 35px;
}

.ar-fallback__brand-name {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
}

.ar-fallback__title {
    margin: 0 auto 30px;
    max-width: 600px;
    font-size: clamp(20px, 8.3vw, 48px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.ar-fallback__text {
    margin: 0 auto;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.ar-fallback__browsers {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.25;
}

.ar-fallback__browser-hint {
    margin: 0;
    white-space: nowrap;
}

.ar-fallback__browser-list {
    display: inline-block;
    margin: 0;
    padding-left: 1.5em;
    text-align: left;
}

.ar-fallback__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.ar-fallback__button,
.ar-fallback__link {
    min-height: 60px;
    padding: 14px 24px;
    box-sizing: border-box;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.ar-fallback__button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.56);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ar-fallback__button--primary {
    border-color: rgba(255, 255, 255, 0.56);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.ar-fallback__link {
    min-height: 40px;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-weight: 500;
}

.ar-fallback__button:focus-visible,
.ar-fallback__link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (hover: hover) {
    .ar-fallback__button:hover {
        background: rgba(255, 255, 255, 0.16);
    }

    .ar-fallback__button--primary:hover {
        background: rgba(255, 255, 255, 0.16);
    }

    .ar-fallback__link:hover {
        color: rgba(255, 255, 255, 0.72);
    }
}

.ar-fallback [hidden] {
    display: none;
}

@media (max-width: 520px) {
    .ar-fallback {
        padding-right: 28px;
        padding-left: 28px;
    }

    .ar-fallback__content {
        padding-top: 44px;
        padding-bottom: 28px;
    }

    .ar-fallback__brand {
        margin-bottom: 26px;
    }

    .ar-fallback__title {
        margin-bottom: 28px;
    }

    .ar-fallback__button,
    .ar-fallback__link {
        min-height: 56px;
    }
}
