html, body { width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden; background: #fff }
#unity-container { position: fixed; inset: 0 }
#unity-background { position: absolute; inset: 0; z-index: 0; background: #f3f4f6 }
#unity-canvas { position: relative; z-index: 1; width: 100%; height: 100%; background: transparent; visibility: hidden; pointer-events: none }
#unity-container.unity-ready #unity-canvas { visibility: visible; pointer-events: auto }
#unity-intro { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; overflow: hidden; background: #fff; opacity: 1; transition: opacity 220ms ease-out; contain: layout paint }
#unity-intro-video, #unity-intro-animation, #unity-intro-last { grid-area: 1 / 1; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center }
#unity-intro-video { pointer-events: none }
#unity-intro-logo { width: min(220px, 60vw); aspect-ratio: 1170 / 258; background: center / contain no-repeat url("tangem-logo.png") }
#unity-loading-version { position: absolute; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); color: #5b6472; font: 13px/1.3 system-ui, sans-serif; text-align: center; overflow-wrap: anywhere }
[data-tangem-intro] #unity-intro-logo, [data-tangem-intro] #unity-loading-version, html:not([data-tangem-intro]) #unity-intro-video { display: none }
/* Keep the video eligible for autoplay while covering any native Play overlay. */
[data-tangem-intro] #unity-intro:not(.unity-intro-playing)::after { content: ""; position: absolute; inset: 0; background: #fff }
#unity-intro [hidden] { display: none }
#unity-intro.unity-intro-finished { opacity: 0; pointer-events: none }
#unity-warning { position: absolute; z-index: 3; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; max-width: calc(100% - 48px) }
@media (prefers-reduced-motion: reduce) { #unity-intro { transition: none } }
