html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #0f1216; color: #ece8df;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#unity-fullscreen-container { position: fixed; inset: 0; background: #0f1216; }
#unity-canvas { display: block; width: 100%; height: 100%; background: #0f1216; outline: none; }

/* načítání: obrázek světa, název, popis, průběh */
#loading { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start;
  background: radial-gradient(ellipse at 50% 120%, #3b5a2d 0%, transparent 60%),
              linear-gradient(180deg, #2c5b8f 0%, #6f97bf 55%, #c8b48a 100%);
  transition: opacity 0.6s; }
#loading.done { opacity: 0; pointer-events: none; }
#loading-cover { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0;
  transition: opacity 0.8s; animation: drift 40s ease-in-out infinite alternate; }
#loading.has-cover #loading-cover { opacity: 1; }
#loading::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,22,0) 35%, rgba(15,18,22,0.85) 100%); }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.08); } }

#loading-box { position: relative; z-index: 1; max-width: 640px; margin: 0 0 7vh 7vw; padding-right: 20px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
#home { display: inline-block; color: #e8c068; text-decoration: none; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 6px; }
#home:hover { text-decoration: underline; }
#world-name { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; margin: 0 0 6px; color: #fff; }
#world-tagline { font-size: 1.2rem; font-weight: 600; color: #e8c068; margin: 0 0 10px; }
#world-desc { font-size: 1.05rem; color: #fff; opacity: 0.92; margin: 0 0 22px; }
#bar { width: min(420px, 80vw); height: 6px; border-radius: 3px; background: rgba(255,255,255,0.22); overflow: hidden; }
#bar-full { width: 0; height: 100%; background: #e8c068; transition: width 0.2s; }
#bar-label { font-size: 0.9rem; opacity: 0.85; margin-top: 8px; }
#bar-label.error { color: #ff8a7a; opacity: 1; }

body.mobile #loading-box { margin: 0 0 5vh 5vw; }
body.mobile #world-desc { font-size: 0.95rem; }

#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); z-index: 2; }
#unity-warning div { padding: 10px 14px; margin-bottom: 6px; border-radius: 6px; background: rgba(15,18,22,0.85); }
#unity-warning div.warning { background: #a07a10; }
#unity-warning div.error { background: #a02a20; }
#world-tagline:empty, #world-desc:empty { display: none; }
