html{
    height: 100vh;
    overflow: hidden;
    overscroll-behavior: none; 
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;           
    -ms-overflow-style: none;
    scrollbar-width: none; 
}
body::-webkit-scrollbar {
    display: none;
}
#unity-container { 
    position: absolute;
}
#unity-container.unity-desktop { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%) 
}
#unity-container.unity-mobile { 
    width: 100vw; 
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}
#unity-canvas { 
    background: #231F20;
    width: 100%;
    height: 100%;
}
.unity-mobile #unity-canvas { 
    width: 100%; 
    height: 100% 
}
#unity-loading-bar { 
    position: absolute; 
    left: 50%; 
    top: 50%;
    transform: translate(-50%, -50%);
    display: none 
}
#unity-footer { 
    position: relative 
}
.unity-mobile #unity-footer { 
    display: none 
}
.ctaDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #fffa;
    z-index: 99;
}
.viewar-screen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}
.ui-actions-container {
    position: relative;
    width: auto;
}
.magoo-icon-container-viewar {
    position: fixed;
    top: 10px;
    left: 7px;
    z-index: 1000;
}
.social-actions-container-viewar {
    position: fixed;
    bottom: 33px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.avatar-container-viewar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    /* A profile picture with a transparent background shows white behind it,
       never the camera. Javier, 2026-10-10. */
    background: #fff;
}

.avatar-container-viewar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.create-magoo-viewar {
    width: 48px;
    height: 48px;
}
.create-magoo-viewar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.capture-scene-container {
    width: 80px;
    height: 80px;
    position: fixed;
    bottom: 19px;
    left: 50%;
    transform: translateX(-50%);
}

.capture-scene {
    border: none;
    outline: none;
    background-color: transparent;
    width: 100%;
    height: 100%;
    padding: 0;
}

.circle-icon-outer {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.8); 
    border-radius: 50%; 
    background-color: transparent; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
}

.circle-icon-inner {
    width: 60px; 
    height: 60px;
    background-color: white; 
    border-radius: 50%; 
}

.capture-scene-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.action-viewar-container {
    width: 48px;
    height: 48px;
    cursor: pointer;
}

.action-viewar-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#example-scanning-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 90vw;
    max-width: 600px;
    height: auto;
    max-height: 85vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    z-index: 2;
}

#example-scanning-overlay .inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

#example-scanning-overlay.hidden {
    display: none;
}

#example-scanning-overlay .search-animation {
    opacity: 1;
    width: 100%;
    height: 100%;
    align-self: center;
}

#example-scanning-overlay .inner .scanline {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.close-btn-viewar {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #E4E4E4;
    padding: 0;
}
#capture-button-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 32;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* Full width and the highest layer down here, so its empty sides used to
       swallow taps meant for whatever they crossed — the bottom of the social
       column, where only the top sliver of the comment button was still
       reachable. The controls take input; the box around them does not. */
    pointer-events: none;
}

#capture-button-container > * {
    pointer-events: auto;
}
#capture-button {
    position: relative; 
    width: 80px;
    height: 80px;
    display: block;
    border: none;   
    border-radius: 50%;
    background: #ffffff;   
    box-shadow: 0 4px 18px rgba(0,0,0,.28);
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#capture-button::after{
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: transparent;     
    border: 3.5px solid #ffffff;
    pointer-events: none;
}

#capture-button:active{
  transform: scale(.96);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.capture-mode-container{
    height: 30px;          
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.capture-mode-form{
    display: inline-flex;
    gap: 2px;
    border-radius: 90px;
}
.capture-mode-form input{ 
    display:none; 
}
.capture-mode-form label{
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
    width: 80px;
    border-radius: 90px;
    cursor: pointer;
    white-space: nowrap;
    color: white;
    opacity: 1;
    transition: transform .08s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.capture-mode-form label:active{ transform: scale(.97); }
.capture-mode-form input:checked + label{
  background: #fff;
  color: #323232;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

#recording-indicator {
    position: relative;  
    width: 80px;
    height: 80px;
    display: block;
    border: none;
    border-radius: 50%;
    background: #ffffff;   
    box-shadow: 0 4px 18px rgba(0,0,0,.28);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform .08s ease, box-shadow .2s ease;
}

#recording-indicator:before{
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 34px;   
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 8px;     
    background: rgb(187, 39, 26); 
    transition: background .15s ease;
}

#recording-indicator:active{
  transform: scale(.96);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    visibility: visible;
    opacity: 1;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
.search-target {
    position: relative;
    opacity: 0.6;
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 25px;
    z-index: 1;
}

.scanline.magoo_eyes {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.target-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 30px 0;
}

.searching-magoo-animation {
    max-width: 270px;
    width: 100%;
    height: auto;
}

.target-search-instruction {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.target-border-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.target-border-container.visible {
    opacity: 1;
}

.target-border {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    pointer-events: none;
}

.corner-border {
    position: absolute;
    width: 36%;
    height: 20%;
    border: 5px solid white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.corner-border.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 25px 0 0 0;
}

.corner-border.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 25px 0 0;
}

.corner-border.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 25px;
}

.corner-border.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 25px 0;
}

.target-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.target-triangle.left {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: clamp(12px, 2.5vw, 25px) 0 clamp(12px, 2.5vw, 25px) clamp(14px, 2.5vw, 22px);
    border-color: transparent transparent transparent white;
}

.target-triangle.right {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: clamp(12px, 2.5vw, 25px) clamp(14px, 2.5vw, 22px) clamp(12px, 2.5vw, 25px) 0;
    border-color: transparent white transparent transparent;
}

.target-triangle.top {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: clamp(16px, 2.5vw, 28px) clamp(16px, 2.5vw, 28px) 0 clamp(16px, 2.5vw, 28px);
    border-color: white transparent transparent transparent;
}

.target-triangle.bottom {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 clamp(14px, 2.5vw, 22px) clamp(14px, 2.5vw, 22px) clamp(14px, 2.5vw, 22px);
    border-color: transparent transparent white transparent;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 15px rgba(255, 255, 255, 0.7),
            0 0 30px rgba(255, 255, 255, 0.5),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

@keyframes glowPulseFilter {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
    }
}

@media only screen and (max-width: 750px) {
    #example-scanning-overlay {
        width: 95vw;
        max-height: 90vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .search-target {
        max-width: 350px;
        max-height: 50vh;
    }

    .searching-magoo-animation {
        max-width: 280px;
    }

    .target-search-instruction {
        max-width: 320px;
    }


}

@media only screen and (max-width: 450px) {
    #example-scanning-overlay {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .search-target {
        max-width: 300px;
        max-height: 40vh;
    }

    .searching-magoo-animation {
        max-width: 240px;
    }

    .target-search-instruction {
        max-width: 280px;
    }


}
.reanude-experience-container {
    cursor: pointer;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2em;
    z-index: 1001;
    display: flex;
    text-align: center;
    justify-content: center;
}
.text-reanude-experience {
    margin: auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 750px) {
    #example-scanning-overlay {
        height: 100vh;
    }
    #capture-button {
        width: 70px;
        height: 70px;
    }
    #recording-indicator {
        width: 70px;
        height: 70px;
    }
    #recording-indicator:before{
        width: 30px;   
        height: 30px;   
    }

}

@media only screen and (max-width: 450px) {
    #example-scanning-overlay {
        width: 80vw;
    }
}

@keyframes move {

    0%,
    100% {
        top: 0%
    }

    50% {
        top: calc(100% - 10px)
    }
}