/* Loading Screen Styles */
body {
    margin: 0;
    padding: 0;
    background: #161616;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #161616;
    transition: opacity 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fade-in-logo {
    max-width: 250px;
    height: auto;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Flutter canvas styling */
#flutter_target {
    width: 100%;
    height: 100%;
}

/* iOS Safari fix for black bottom barrier */
html, body {
    height: 100%;
    overflow: hidden;
}

#flt-platform-view {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

canvas {
    height: 100vh !important;
}