html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    background-color: #0e3485;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: auto;
}

html[data-fullscreen-experience="play"] {
    background-color: var(--controller-background-color);
}

html[data-fullscreen-experience="build"] {
    background-color: #1b7dd4;
}

body {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

body,
.home-hero {
    background-color: #0e3485;
    background-image:
        linear-gradient(rgba(20, 67, 157, 0.45), rgba(20, 67, 157, 0.45)),
        url("../img/Blue_Print_Pattern.png"),
        linear-gradient(to bottom, #2660de 0%, #0e3485 100%);
    background-repeat: no-repeat, repeat, no-repeat;
    background-size: cover, 512px 512px, cover;
    background-position: left top, left top, left top;
    background-attachment: fixed, fixed, fixed;
}

#home-main {
    --hero-curve-depth: clamp(30px, 3.5vw, 44px);
    --hero-curve-overhang: clamp(72px, 9vw, 144px);
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    overflow-x: hidden;
    overflow-x: clip;
}

body.scanner-active #home-main {
    position: relative;
    /* Keep the departing gallery out of the scanner's scrollable area. */
    overflow: hidden;
    overflow: clip;
}

body.scanner-active .home-footer {
    display: none;
}

.home-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 8px 16px;
    padding: 20px max(24px, var(--safe-area-right)) calc(24px + var(--safe-area-bottom)) max(24px, var(--safe-area-left));
    background-color: #ffae16;
    color: #fffdfd9e;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

.home-footer small {
    font-size: inherit;
}

.home-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
}

.home-footer__links a {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-footer__links a:hover {
    text-decoration-thickness: 2px;
}

.home-footer__links a:focus-visible {
    outline: 3px solid #0e3485;
    outline-offset: 4px;
    border-radius: 2px;
}

.home-hero {
    position: relative;
    z-index: 1;
    display: flex;
    width: calc(100% + var(--hero-curve-overhang) + var(--hero-curve-overhang));
    min-height: calc(clamp(540px, 50vw, 680px) + var(--hero-curve-depth));
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(100px + var(--safe-area-top)) 24px calc(20px + var(--hero-curve-depth));
    margin-bottom: calc(-1 * var(--hero-curve-depth));
    margin-left: calc(-1 * var(--hero-curve-overhang));
    padding-right: calc(24px + var(--hero-curve-overhang) + var(--safe-area-right));
    padding-left: calc(24px + var(--hero-curve-overhang) + var(--safe-area-left));
    border-radius: 0 0 50% 50% / 0 0 var(--hero-curve-depth) var(--hero-curve-depth);
    isolation: isolate;
}

body.scanner-active .home-hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(80px + var(--safe-area-top)) calc(24px + var(--safe-area-right)) var(--safe-area-bottom) calc(24px + var(--safe-area-left));
    margin-bottom: 0;
    margin-left: 0;
    border-radius: 0;
}

[hidden] {
    display: none !important;
}

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

#welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.home-hero__cards {
    display: block;
    width: min(82vw, 560px);
    height: auto;
    margin: 0 0 clamp(12px, 1.4vw, 20px);
}

.home-tagline {
    margin: 0;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(32px, 4.35vw, 54px);
    font-style: italic;
    font-stretch: semi-condensed;
    font-weight: 800;
    line-height: 1.16;
    text-align: center;
    text-shadow: 0 3px 1px rgba(5, 20, 55, 0.2);
}

.home-tagline__wordmark {
    display: inline-block;
    width: auto;
    height: 1.9em;
    margin: 0 0.04em;
    vertical-align: -0.57em;
}

#welcome-logo {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
}

#welcome-text-title {
    color: #263238;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 25px;
    margin: 0;
    text-align: center;
}

#welcome-text {
    color: #263238;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    text-align: justify;
    max-width: 300px;
    padding: 12px;
}

#scan-button {
    background-color: #fff;
    color: #263238;
    border: none;
    border-radius: 999px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 800;
    /* font-style: italic; */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#scan-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#scan-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.featured-builds {
    position: relative;
    z-index: 2;
    min-height: 520px;
    padding: clamp(66px, 7vw, 104px) clamp(24px, 7.25vw, 104px) 84px;
    flex: 1 0 auto;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 440ms ease,
        transform 520ms cubic-bezier(0.22, 0.78, 0.24, 1);
    will-change: opacity, transform;
}

.featured-builds::before {
    position: absolute;
    inset: var(--hero-curve-depth) 0 0;
    z-index: 0;
    background: linear-gradient(to bottom, #ffb300 0%, #ffae16 100%);
    content: "";
    pointer-events: none;
}

.featured-builds__curve {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: block;
    width: calc(100% + var(--hero-curve-overhang) + var(--hero-curve-overhang));
    max-width: none;
    height: var(--hero-curve-depth);
    pointer-events: none;
    transform: translateX(-50%);
}

body.scanner-active .featured-builds {
    position: absolute;
    top: 100%;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16vh);
}

.featured-builds__content {
    position: relative;
    z-index: 3;
    width: min(100%, 1240px);
    margin: 0 auto;
}

.featured-builds h2 {
    margin: 0 0 clamp(28px, 3.5vw, 48px);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(30px, 3vw, 45px);
    font-style: italic;
    font-stretch: semi-condensed;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-shadow: 0 4px 1px rgba(139, 80, 0, 0.28);
}

.featured-builds__status {
    min-height: 22px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.featured-build-gallery {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 2vw, 34px) clamp(14px, 1.8vw, 26px);
}

.featured-builds__pagination {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: center;
}

.featured-builds__show-more {
    min-width: 132px;
    padding: 12px 24px;
    color: #263238;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(5, 20, 55, 0.3);
    cursor: pointer;
    font-weight: 800;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.featured-builds__show-more:hover {
    box-shadow: 0 7px 18px rgba(5, 20, 55, 0.36);
    transform: translateY(-1px);
}

.featured-builds__show-more:active {
    transform: translateY(1px);
}

.featured-builds__show-more:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.featured-build-item {
    min-width: 0;
}

.featured-build-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 618 / 858;
    border-radius: clamp(14px, 1.2vw, 20px);
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    isolation: isolate;
    touch-action: manipulation;
    user-select: none;
}

.featured-build-card:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
}

html:has(.build-lightbox[open]),
body:has(.build-lightbox[open]) {
    overflow: hidden;
}

.build-lightbox {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #1594f6;
    color: #fff;
}

.build-lightbox::backdrop {
    background: #1594f6;
}

.build-lightbox__viewport {
    position: absolute;
    inset: 0;
}

.build-lightbox__viewport canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.build-lightbox__status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 24px;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
}

.build-lightbox .viewport-close {
    position: absolute;
    top: calc(24px + var(--safe-area-top));
    left: calc(24px + var(--safe-area-left));
    z-index: 4;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    padding: 0;
    border: 0;
    background: #1b7dd4;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}

.build-lightbox .viewport-close:hover {
    background: #006bc8;
    transform: translateY(-1px);
}

.build-lightbox .viewport-close:active {
    transform: translateY(1px);
}

.build-lightbox .viewport-close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.94);
    outline-offset: 3px;
}

.build-lightbox .viewport-close img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@media (max-width: 620px) {
    .build-lightbox .viewport-close {
        top: calc(16px + var(--safe-area-top));
        left: calc(16px + var(--safe-area-left));
    }
}

.featured-build-item:nth-child(odd) .featured-build-card {
    transform: rotate(1deg);
}

.featured-build-item:nth-child(even) .featured-build-card {
    transform: rotate(-1deg);
}

.featured-build-preview-window {
    position: absolute;
    inset:
        calc(2.45% - 3px)
        calc(4.37% - 3px)
        calc(4.2% - 3px)
        calc(4.85% - 3px);
    z-index: 1;
    overflow: hidden;
    background: #1594f6;
    border-radius: 18px 18px 15px 15px;
}

.featured-build-preview {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.featured-build-preview-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    background: #1594f6;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.featured-build-card-frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    filter: drop-shadow(0 8px 6px rgba(139, 80, 0, 0.28));
}

.featured-builds__decorations {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.featured-builds__squiggle {
    position: absolute;
    display: block;
    width: auto;
    max-width: none;
    height: auto;
    opacity: 0.9;
    transform: scale(1);
    transform-origin: center;
}

.featured-builds__squiggle--one {
    top: 6%;
    right: -9%;
    rotate: -133deg;
}

.featured-builds__squiggle--two {
    top: 8%;
    left: -5%;
    rotate: -8deg;
}

.featured-builds__squiggle--three {
    top: 63%;
    right: -15%;
    rotate: -64deg;
}

.featured-builds__squiggle--four {
    top: 67%;
    left: -9%;
    rotate: 92deg;
}

#scanner-panel {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: center;
}

#reader-wrapper {
    grid-area: 1 / 1;
    transform: translateY(calc(-50vh - 50% - 24px));
    transform: translateY(calc(-50dvh - 50% - 24px));
    transition: transform 600ms cubic-bezier(0.22, 0.78, 0.24, 1);
    will-change: transform;
    z-index: 1;
}

#scanner-panel.is-open #reader-wrapper {
    transform: translateY(0);
}

#scanner-panel.is-direct-preview #reader-wrapper {
    visibility: hidden;
    transform: translateY(0);
    transition: none;
}

#scanner-panel.is-model-open #reader-wrapper {
    transform: translateY(0) rotate(-2deg);
}

#model-card-slot {
    position: relative;
    grid-area: 1 / 1;
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
}

#card-access-slot {
    position: relative;
    grid-area: 1 / 1;
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.card-access {
    --access-content-top: clamp(-24px, -2.5svh, -12px);
    position: relative;
    display: flex;
    width: min(82vw, 458px);
    width: min(82vw, calc(72.028svh - 126.77px), 458px);
    aspect-ratio: 618 / 858;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    padding: 26px 28px 20px;
    overflow: hidden;
    color: #29343a;
    background: #fff;
    border: 9px solid #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 8px 7px rgba(5, 20, 55, 0.34);
    pointer-events: none;
    transform: translateY(calc(-50vh - 50% - 24px)) rotate(1deg);
    transform: translateY(calc(-50dvh - 50% - 24px)) rotate(1deg);
    transition: transform 600ms cubic-bezier(0.22, 0.78, 0.24, 1);
    will-change: transform;
}

.card-access:focus {
    outline: none;
}

#scanner-panel.is-access-open .card-access {
    pointer-events: auto;
    transform: translate3d(0, 0, 0) rotate(0);
}

#scanner-panel.is-access-open #reader-wrapper {
    visibility: hidden;
}

.card-access__state {
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
}

.card-access__characters {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    container-type: inline-size;
}

.card-access__character {
    position: absolute;
    display: block;
    width: auto;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.card-access__character--jeremy {
    top: 6%;
    right: -8%;
    width: 57%;
    transform: rotate(8deg);
}

.card-access__character--andy {
    bottom: 6%;
    left: -7%;
    width: 56%;
    transform: rotate(-10deg);
}

.character-callout {
    position: absolute;
    z-index: 2;
    display: inline-block;
    padding: 4cqw 6.5cqw 4.4cqw;
    color: #fff;
    border-radius: 999px;
    font-family: 'Open Sans Condensed', 'Open Sans', sans-serif;
    font-size: 10cqw;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.character-callout::after {
    position: absolute;
    bottom: -3.4cqw;
    width: 0;
    height: 0;
    border-top: 4.8cqw solid;
    border-right: 2.4cqw solid transparent;
    border-left: 2.4cqw solid transparent;
    content: '';
}

.character-callout--hello {
    top: 9%;
    left: 3%;
    background: #ffad00;
    transform: rotate(-4deg);
}

.character-callout--hello::after {
    right: 8cqw;
    border-top-color: #ffad00;
    transform: rotate(-12deg);
}

.character-callout--welcome {
    right: -3%;
    bottom: 21%;
    background: #2d8de8;
    transform: rotate(7deg);
}

.character-callout--welcome::after {
    left: 8cqw;
    border-top-color: #2d8de8;
    transform: rotate(16deg);
}

.card-access__detail {
    position: relative;
    top: var(--access-content-top);
    margin: 14px 0 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(16px, 4.7vw, 19px);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    font-stretch: semi-condensed;
}

.card-access__state--denied {
    justify-content: flex-start;
}

.card-access__denied-character {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    container-type: inline-size;
}

.character-callout--blocked {
    top: 5%;
    left: 50%;
    background: #ffad00;
    transform: translateX(-50%) rotate(-2deg);
}

.character-callout--blocked::after {
    left: 55%;
    border-top-color: #ffad00;
}

.card-access__character--blocked {
    top: 31%;
    left: 50%;
    width: 58%;
    transform: translateX(-50%) rotate(8deg);
}

.card-access__state--denied h1 {
    position: relative;
    top: var(--access-content-top);
    margin: 8px 0 0;
    font-family: 'Open Sans Condensed', 'Open Sans', sans-serif;
    font-size: clamp(20px, 5.8vw, 24px);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.card-access__state--denied .card-access__detail {
    margin-top: 8px;
    margin-bottom: 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(15px, 4.4vw, 18px);
    font-stretch: semi-condensed;
}

.card-access__detail a {
    color: #1d78c9;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.card-access__detail a:hover {
    color: #155fa4;
}

.card-access__detail a:focus-visible {
    border-radius: 2px;
    outline: 3px solid #2d8de8;
    outline-offset: 2px;
}

.google-sign-in {
    position: relative;
    top: var(--access-content-top);
    display: flex;
    min-height: 43px;
    max-width: 100%;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 9px 15px;
    color: #4a4d52;
    background: #fff;
    border: 1px solid #cfd3d8;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(14px, 4.4vw, 17px);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.google-sign-in:hover:not(:disabled) {
    background: #f8fafc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.google-sign-in:active:not(:disabled) {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.google-sign-in:focus-visible {
    outline: 3px solid #2d8de8;
    outline-offset: 3px;
}

.google-sign-in:disabled {
    cursor: wait;
    opacity: 0.7;
}

.google-sign-in__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.card-access__error {
    position: relative;
    top: var(--access-content-top);
    min-height: 0;
    margin: 7px 0 -4px;
    color: #b3261e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.card-access__error:empty {
    display: none;
}

#model-card {
    position: relative;
    width: min(82vw, 458px);
    width: min(82vw, calc(72.028svh - 126.77px), 458px);
    aspect-ratio: 618 / 858;
    flex-shrink: 0;
    touch-action: none;
    user-select: none;
    cursor: grab;
    pointer-events: none;
    isolation: isolate;
    transform: translateY(calc(-50vh - 50% - 24px)) rotate(2deg);
    transform: translateY(calc(-50dvh - 50% - 24px)) rotate(2deg);
    transition: transform 600ms cubic-bezier(0.22, 0.78, 0.24, 1);
    will-change: transform;
}

#scanner-panel.is-model-open #model-card {
    pointer-events: auto;
    transform: translate3d(0, 0, 0) rotate(2deg);
}

#model-card.is-dragging {
    cursor: grabbing;
    transition: none;
}

#model-card.is-dismissing {
    pointer-events: none;
    transition: transform 340ms cubic-bezier(0.4, 0, 1, 1);
}

#model-preview-window {
    position: absolute;
    inset:
        calc(2.45% - 3px)
        calc(4.37% - 3px)
        calc(4.2% - 3px)
        calc(4.85% - 3px);
    overflow: hidden;
    border-radius: 18px 18px 15px 15px;
    background: #1594f6;
    z-index: 1;
}

#model-preview {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#model-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    background: #1594f6;
}

#model-card-frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 8px 6px rgba(5, 20, 55, 0.3));
}

#remix-button {
    grid-area: 1 / 1;
    min-width: 104px;
    padding: 15px 38px;
    border-radius: 999px;
    color: #404348;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.28);
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 150ms ease, box-shadow 150ms ease;
}

#scanner-panel.is-model-ready #remix-button {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scanner-panel.is-model-ready #remix-button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
}

#scanner-panel.is-model-ready #remix-button:active {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
    transform: translateY(1px);
}

#scanner-controls {
    position: relative;
    grid-area: 2 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(82vw, 458px);
    margin-top: 12px;
    transition: opacity 160ms ease;
    z-index: 6;
}

#scanner-panel.is-model-open #status {
    opacity: 0;
    pointer-events: none;
}

#scanner-actions {
    display: grid;
    place-items: center;
    margin-top: 10px;
}

#status {
    width: 100%;
    min-height: 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease 360ms, transform 180ms ease 360ms;
}

#cancel-button {
    grid-area: 1 / 1;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 180ms ease 420ms,
        transform 180ms ease 420ms,
        background-color 150ms ease;
}

#cancel-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

#cancel-button:disabled {
    cursor: default;
}

#scanner-panel.is-open #status,
#scanner-panel.is-open #cancel-button {
    opacity: 1;
    transform: translateY(0);
}

#scanner-panel.is-model-open #cancel-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

.fullscreen-experience-frame {
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #1b7dd4;
}

.fullscreen-experience-frame[data-playbook-void-tag-fullscreen="true"] {
    background: var(--controller-background-color);
}

@media (max-width: 480px) {
    .home-hero {
        padding-right: calc(16px + var(--hero-curve-overhang) + var(--safe-area-right));
        padding-left: calc(16px + var(--hero-curve-overhang) + var(--safe-area-left));
    }

    #model-card {
        width: min(88vw, calc(72.028svh - 121.01px), 458px);
    }

    #scanner-controls {
        width: min(88vw, 458px);
    }

    .card-access {
        width: min(88vw, 458px);
        width: min(88vw, calc(72.028svh - 121.01px), 458px);
        padding: 22px 23px 18px;
        border-width: 8px;
    }

    #status {
        font-size: 14px;
    }
}

@media (max-width: 1099px) {
    .featured-builds {
        padding-right: clamp(20px, 6vw, 44px);
        padding-left: clamp(20px, 6vw, 44px);
    }

    .featured-build-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .featured-builds__squiggle {
        opacity: 0.64;
        transform: scale(0.56);
    }
}

@media (max-width: 459px) {
    .featured-build-gallery {
        max-width: 340px;
        margin: 0 auto;
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero,
    .featured-builds,
    .featured-builds__show-more,
    #reader-wrapper,
    #model-card,
    .card-access,
    #scanner-controls,
    #status,
    #cancel-button,
    #remix-button {
        transition-duration: 0.01ms;
        transition-delay: 0ms;
    }
}
