@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    overflow: hidden;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #111;
    touch-action: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-title {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 100;
    text-align: center;
    letter-spacing: 0.3px;
    padding: 12px 22px;
    background: rgba(0,0,0,0.5);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 90%;
    border: 1px solid rgba(255,255,255,0.08);
    line-height: 1.35;
    pointer-events: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .header-title {
        font-size: 24px;
        padding: 16px 28px;
        top: 24px;
        letter-spacing: 0.5px;
    }
}

#arrows {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    pointer-events: none;
    z-index: 100;
}

.arrow-btn {
    pointer-events: auto;
    cursor: pointer;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    transition: all 0.15s ease;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    line-height: 1;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.arrow-btn:active {
    transform: scale(0.92);
    background: rgba(76, 195, 217, 0.3);
    border-color: rgba(76, 195, 217, 0.5);
}

@media (min-width: 768px) {
    #arrows { padding: 0 24px; }
    .arrow-btn {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    .arrow-btn:hover {
        background: rgba(76, 195, 217, 0.2);
        border-color: rgba(76, 195, 217, 0.4);
        color: #fff;
        transform: scale(1.05);
    }
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.8);
    padding: 18px 28px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.06);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top: 3px solid #4CC3D9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#description {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 30px;
    z-index: 100;
    max-width: 90%;
    line-height: 1.4;
    pointer-events: none;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255,255,255,0.06);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    #description {
        font-size: 22px;
        padding: 14px 30px;
        bottom: 100px;
        max-width: 75%;
        border-radius: 40px;
    }
}

.custom-ar-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 120, 255, 0.8);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    z-index: 150;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}

.custom-ar-button:active {
    transform: scale(0.92);
    background: rgba(0, 100, 220, 0.9);
}

@media (min-width: 768px) {
    .custom-ar-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 14px;
    }
    .custom-ar-button:hover {
        transform: scale(1.05);
        background: rgba(0, 120, 255, 0.9);
    }
}

.a-enter-vr, .a-enter-vr-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.a-enter-ar {
    display: none !important;
}

body.ar-mode .header-title,
body.ar-mode #arrows,
body.ar-mode #description,
body.ar-mode .custom-ar-button {
    display: none !important;
}

.ar-unsupported-msg {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: rgba(255,170,100,0.9);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    z-index: 160;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    display: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255,170,100,0.15);
}

@media (min-width: 768px) {
    .ar-unsupported-msg {
        font-size: 13px;
        bottom: 8px;
        padding: 10px 16px;
    }
}
