* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #0D0D0D;
}

/* Solo ocultar el loader por defecto de Flutter, NO el canvas */
#flutter-loader,
flutter-loader,
.flutter-loader {
  display: none !important;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1510 0%, #0D0D0D 70%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 20% 30%, #C9A84C 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.splash-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  text-align: center;
}

.splash-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #0D0D0D;
  border: 2px solid rgba(139, 115, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 2s ease-in-out infinite;
}

.splash-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.splash-title {
  font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #F5F5F5;
  letter-spacing: -0.02em;
}

.splash-subtitle {
  font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  color: #A0A0A0;
  max-width: 280px;
  line-height: 1.5;
}

.splash-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.splash-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid #333333;
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.splash-status {
  font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  color: #8B7340;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.15); }
  50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

flutter-view,
flt-glass-pane {
  width: 100%;
  height: 100%;
}
